package com.xbongbong.pay.platform.wechatpay.pojo.request.partner;

import com.alibaba.fastjson.annotation.JSONField;
import com.xbongbong.pay.platform.wechatpay.pojo.request.WeChatBaseRequest;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 *
 * @author 魏荣杰
 * @date 2021/2/22 13:36
 * @since
 * @version
 */
@Getter
@Setter
public class WeChatPayPartnerCloseOrderRequest extends WeChatBaseRequest {
    private static final long serialVersionUID = -2230904616062259632L;

    /**
     * 服务商户号，由微信支付生成并下发
     * 示例值：1230000109
     */
    @NotBlank
    @Size(min = 1, max = 32)
    @JSONField(name = "sp_mchid")
    private String spMchId;
    /**
     * 子商户的商户号，有微信支付生成并下发。
     * 示例值：1900000109
     */
    @NotBlank
    @Size(min = 1, max = 32)
    @JSONField(name = "sub_mchid")
    private String subMchId;
    /**
     * 微信支付系统生成的订单号
     * 示例值：1217752501201407033233368018
     */
    @NotBlank
    @Size(min = 1, max = 32)
    @JSONField(name = "out_trade_no", serialize = false)
    private String outTradeNo;
}
